<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<link rel="stylesheet" href="css/amazeui.min.css" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/css/amazeui.min.css" type="text/css" />
		<link rel="stylesheet" href="css/style.css" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/css/style.css" type="text/css" />
	</head>
	<body>
		  <header data-am-widget="header" class="am-header am-header-default jz">
		      <div class="am-header-left am-header-nav">
		         <a href="javascript:history.back()" class="">
					<i class="am-icon-chevron-left"></i>
				</a>
		      </div>
		      <h1 class="am-header-title">
		          <a href="#title-link" class="">个人中心</a>
		      </h1>
            </header>
            <div class="wo" style="background-color: #f5f5f5;">
            	<a href="myinfo.html"><img src="images/tx.png" id="myimg" style="width:100px;height:100px;border-radius: 100%;"/></a>
            	<p><a href="myinfo.html" id="myname">昵称 <i class="am-icon-angle-right"></i></a></p>
            </div>
            <!--<ul class="member">
            	<li>
            		<a href="money.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/money.html">
            			<h2>100</h2>
            			<p>余额</p>
            		</a>
            	</li>
            	<li>
            		<a href="">
            			<h2>50</h2>
            			<p>积分</p>
            		</a>
            	</li>
            	<li>
            		<a href="">
            			<h2>2</h2>
            			<p>优惠券</p>
            		</a>
            	</li>
            </ul>-->
            <ul class="nav">
              
              	<li>
            		<a onclick="types();" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/money.html">
            			<img src="images/my.png" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/images/i1.png" />
            			<span>我的主页</span>
            			<i class="am-icon-angle-right"></i>
            		</a>
            	</li>
              <li>
            		<a href="myMsg.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/money.html">
            			<img src="images/yzq1.png" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/images/i1.png" />
            			<span>我的业主圈</span>
            			<i class="am-icon-angle-right"></i>
            		</a>
            	</li>
            	<li>
            		<a href="baojiaitem.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/money.html">
            			<img src="images/bj.png" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/images/i1.png" />
            			<span>报价列表</span>
            			<i class="am-icon-angle-right"></i>
            		</a>
            	</li>
            	<li>
            		<a href="baojia.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/serveradd.html">
            			<img src="images/wybj.png" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/images/i2.png" />
            			<span>我要报价</span>
            			<i class="am-icon-angle-right"></i>
            		</a>
            	</li>
            	<li>
            		<a href="businessManList.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/serveradd.html">
            			<img src="images/txl.png" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/images/i2.png" />
            			<span>商会通讯录</span>
            			<i class="am-icon-angle-right"></i>
            		</a>
            	</li>
            </ul>
            <ul class="nav">
            	<li>
            		<a href="tel:0532-85696999">
            			<img src="images/i5.png" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/images/i5.png" />
            			<span>呼叫客服</span>
            			<i class="am-icon-angle-right"></i>
            			<em>0532-85696999</em>
            		</a>
            	</li>
 
            </ul>
            <input type="button" value="安全退出" class="money-btn" >
            <div style="height: 49px;"></div>
			<div data-am-widget="navbar" class="am-navbar  gm-foot am-no-layout" id="">
				<ul class="am-navbar-nav am-cf am-avg-sm-4">
					<li>
						<a href="index.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/index.html" class="curr">
							<span class="am-icon-home"></span>
							<span class="am-navbar-label">首页</span>
						</a>
					</li>
					<li>
						<a href="price.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/order.html" class="">
							<span class="am-icon-paypal"></span>
							<span class="am-navbar-label">报价</span>
						</a>
					</li>
					<li>
						<a href="yezhuquan.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/order.html" class="">
							<span class="am-icon-spinner"></span>
							<span class="am-navbar-label">业主圈</span>
						</a>
					</li>
					<li class="curr">
						<a href="main.html" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/member.html" class="">
							<span class="am-icon-user"></span>
							<span class="am-navbar-label">我的</span>
						</a>
					</li>
				</ul>
			</div>
					

	</body>
	<script type="text/javascript" src="js/jquery.min.js" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/js/jquery.min.js" ></script>
	<script type="text/javascript" src="js/amazeui.min.js" tppabs="http://yanshi.sucaihuo.com/modals/16/1608/demo/js/amazeui.min.js"></script>
	<script type="text/javascript" src="js/hui.js"></script>
	<script>
		var id = localStorage.getItem("id");
		if(!id){
			location.href="login.html";
		}else{
			hui.getJSON(
			    rootpath+'/businessMan/findBusinessMan/'+id,
			    function(msg){
				    if(msg.isActive!=0){
						hui.toast('你已被管理员禁用，将无权限访问!', 'warn');
						localStorage.removeItem("id")
						location.href="login.html";
						return;
					}
					$("#myname").html(msg.hotelSinName);
					if(msg.faceImg){
						if(msg.faceImg.indexOf("http")>-1){
							document.getElementById("myimg").src=msg.faceImg;
						}else{
							document.getElementById("myimg").src=rootpath+"/"+msg.faceImg;
						}
					}
			    },
			    function(e){
			        hui.iconToast('读取消息失败', 'warn');
			        console.log(e);
			    }
			);
		}
		$(".money-btn").click(function(){
			localStorage.removeItem("id");
			location.href="login.html";
		});
      function types(){
        localStorage.removeItem("itemTypeId");
        localStorage.setItem("itemTypeId",id);
        location.href="priceInfo.html";
      }
	</script>
</html>
